package com.ztao.controller;

import com.heima.model.common.admin.dto.AdminLoginDto;
import com.heima.model.common.dtos.ResponseResult;
import com.ztao.service.AdUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class AdUserController {
    @Resource
    private AdUserService adUserService;
    @PostMapping("/login/in")
    public ResponseResult login(@RequestBody AdminLoginDto dto) {
        return adUserService.login(dto);
    }


}
